import Vue from "vue";
import VueRouter from "vue-router";
import login from "@/view/login";
import register from "@/view/register";
import manage from "@/view/home/manage";

Vue.use(VueRouter);

export default new VueRouter({
    mode: "history",
    routes: [
        {
            path: "",
            name:"home",
            component: login
        },

        {
            path: "/login",
            name: "login",
            component: login
        },

        {
            path: "/register",
            name: "register",
            component: register
        },

        {
            path: "/manage",
            name: "manage",
            component: manage
        }
    ]
});